//
//  BShopPartDetailModel.h
//  DistributorAB
//
//  Created by LZY on 2019/10/10.
//  Copyright © 2019 主事丫环. All rights reserved.
//

// B级经销商候保配件详情model

#import "BaseModel.h"
#import "BShopPartModel.h"

@class BShopPartTypeModel,BShopStoreInfoModel,BShopPartCycleModel;

NS_ASSUME_NONNULL_BEGIN

@interface BShopPartDetailModel : BaseModel
@property (nonatomic, copy) NSString *parts_details;//产品介绍
@property (nonatomic, copy) NSString *parts_remarks;//图文详情

@property (nonatomic, strong) NSArray *attribute;//类型
@property (nonatomic, assign) BOOL isOpenAttribute;//用于标记是否展开了类型
@property (nonatomic, assign) CGFloat attributeHeight;//用于存储类型高度
@property (nonatomic, assign) CGFloat attributeSelectedHeight;//用于存储选中类型后的标签高度

@property (nonatomic, strong) BShopStoreInfoModel *factory;//店铺
@property (nonatomic, strong) NSArray <BShopPartCycleModel *> *lbImg;//轮播图

@property (nonatomic, copy) NSString *quantity;//省级经销商/市县级经销最低购买数
@property (nonatomic, assign) NSInteger buyNumber;//用于存储加入购物车的数量
@property (nonatomic, copy) NSString *contactPhone;//产品详情咨询电话
@property (nonatomic, copy) NSString *lower_user;
//@property (nonatomic, copy) NSString *lower_agentA;
//@property (nonatomic, copy) NSString *lower_agentB;
@end

// 配件类型model
@interface BShopPartTypeModel : BaseModel
@property (nonatomic, copy) NSString *compensationPrice;//赔付金额
@property (nonatomic, copy) NSString *quantity;//产品最低购买量
@property (nonatomic, copy) NSString *salePrice;//
@property (nonatomic, copy) NSString *install;//有效期
@property (nonatomic, copy) NSString *contractPrice;//
@property (nonatomic, copy) NSString *partsId;//类型ID
@property (nonatomic, copy) NSString *name;//型号名称
@property (nonatomic, copy) NSString *warranty;//质保期
@property (nonatomic, copy) NSString *createDate;//
@property (nonatomic, copy) NSString *soft;//
@property (nonatomic, assign) BOOL isSelected;//用于记录选中的标签
@end

//店铺信息model
@interface BShopStoreInfoModel : BaseModel
@property (nonatomic, copy) NSString *factory_person;//店铺所有人
@property (nonatomic, copy) NSString *factory_phone;//电话
@property (nonatomic, copy) NSString *factory_address;//地址
@property (nonatomic, copy) NSString *modifyDate;//
@property (nonatomic, copy) NSString *factory_area;//
@property (nonatomic, copy) NSString *factory_code;//
@property (nonatomic, copy) NSString *factory_name;//店铺名称
@property (nonatomic, copy) NSString *factory_img;//店铺图片
@property (nonatomic, copy) NSString *factory_remarks;//店铺简介
@property (nonatomic, copy) NSString *factory_email;//店铺邮件
@property (nonatomic, copy) NSString *factory_password;//
@property (nonatomic, copy) NSString *createDate;//
@property (nonatomic, strong) NSArray <BShopPartModel *>*parts;//店铺产品列表
@end

//轮播图model
@interface BShopPartCycleModel : BaseModel
@property (nonatomic, copy) NSString *image_url;//图片地址
@property (nonatomic, copy) NSString *parts_id;
@property (nonatomic, copy) NSString *sort;
@property (nonatomic, copy) NSString *type;
@end

NS_ASSUME_NONNULL_END
